package com.example.demo.entity;

public class Film {
    private int id;
    private int film;
    private String filmtime;
    private String filmscore;
    private String filmpath;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFilm() {
        return film;
    }

    public void setFilm(int film) {
        this.film = film;
    }

    public String getFilmtime() {
        return filmtime;
    }

    public void setFilmtime(String filmtime) {
        this.filmtime = filmtime;
    }

    public String getFilmscore() {
        return filmscore;
    }

    public void setFilmscore(String filmscore) {
        this.filmscore = filmscore;
    }

    public String getFilmpath() {
        return filmpath;
    }

    public void setFilmpath(String filmpath) {
        this.filmpath = filmpath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Film)) return false;

        Film film1 = (Film) o;

        if (getId() != film1.getId()) return false;
        if (getFilm() != film1.getFilm()) return false;
        if (getFilmtime() != null ? !getFilmtime().equals(film1.getFilmtime()) : film1.getFilmtime() != null)
            return false;
        if (getFilmscore() != null ? !getFilmscore().equals(film1.getFilmscore()) : film1.getFilmscore() != null)
            return false;
        return getFilmpath() != null ? getFilmpath().equals(film1.getFilmpath()) : film1.getFilmpath() == null;
    }

    @Override
    public int hashCode() {
        int result = getId();
        result = 31 * result + getFilm();
        result = 31 * result + (getFilmtime() != null ? getFilmtime().hashCode() : 0);
        result = 31 * result + (getFilmscore() != null ? getFilmscore().hashCode() : 0);
        result = 31 * result + (getFilmpath() != null ? getFilmpath().hashCode() : 0);
        return result;
    }

    public Film() {
        super();
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
    }
}
